/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package boundless.test;

import boundless.ejb.*;
import boundless.entities.*;
import boundless.managedbeans.*;
import java.util.*;

/**
 *
 * @author hendrikdekock
 */
public class DraftTester {
    
    public static void start(RequestBean rb) {
        System.out.println("THE TEST HAS BEGUN!!");
        DraftBean db = new DraftBean();
        db.setLeague(rb.getLeague(1));
        db.setReqBean(rb);
        List<Player> testnonMeta = rb.getPlayerByNameSpec();
        System.out.println("THE TEST HAS EXITED");
        List<Player> testSearch = db.searchPlayer("AB");
          
        Player p = new Player(1, "Fred", (short) 0);
        boolean a = rb.isPlayerAssignedToLeague(p, rb.getLeague(1));
        List<Player> testSeach = rb.getAllPlayersOfPosition(rb.getPosition(1));
        
        
    }
    
}
